package com.huanbao.uav.controller;

import com.huanbao.common.pojo.sassrabc.vo.SassUserDetail;
import com.huanbao.uav.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin")
public class AdminController {

    @Autowired
    private IAdminService adminService;

    @PostMapping("/getUserInfoByName")
    public SassUserDetail getUserInfoByName(String loginName) {
        return adminService.getUserDetailByName(loginName);
    }

}
